package it.unibo.iss.domotica.edControlling;

import java.util.TimerTask;

import it.unibo.iss.domotica.edDomain.IElettrodomestico;

public class SwitchEdToActiveThread extends TimerTask {
	
	IElettrodomestico ed;
	
	public SwitchEdToActiveThread(IElettrodomestico ed) throws Exception {
		if(ed != null)
			this.ed = ed;
		else
			throw new Exception("ed is null");
	}
	
	@Override
	public void run() {
		ed.swithToActive();
	}
}
